package cn.tedu.spring.diarray;

import java.util.Arrays;

/**
 * 人类
 */
public class Person {
    private String name;
    private Integer age;
    private String [] hobby;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String[] getHobby() {
        return hobby;
    }
    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return
                "姓名：" + name +
                "\t 年龄：" + age +
                "\t 爱好：" + Arrays.toString(hobby) ;
    }
}
